package com.xyht.sca_s.student_manage_system.modules.asset.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.modules.asset.entity.SmsAssetFixedStorage;
import com.xyht.sca_s.student_manage_system.modules.asset.entity.req.SmsAssetFixedStorageBatchImportReq;
import com.xyht.sca_s.student_manage_system.modules.asset.entity.req.SmsAssetFixedStorageExportReq;
import com.xyht.sca_s.student_manage_system.modules.asset.entity.req.SmsAssetFixedStorageReq;

import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.Map;
import java.util.concurrent.Future;

/**
 * <p>
 * 固定资产库存 服务类
 * </p>
 *
 * @author XYHT
 * @since 2023-05-14
 */
public interface SmsAssetFixedStorageService extends IService<SmsAssetFixedStorage> {
        Future<ResponseResult> batchAddFixedStorage (Map<String,Object> map, String user_id);
        ResponseResult singleAddFixedStorage (SmsAssetFixedStorageReq storageReq, String user_id);

        ResponseResult getFixedStorage(String search_str, String asset_name, String asset_model,
                                       String asset_brand, String asset_category_id,
                                       Integer asset_status, String asset_id, BigDecimal assetPrice,
                                       String asset_place,
                                       Integer pageNum, Integer pageSize);

        ResponseResult getExistAssetFixedStorageGroup(String search_str,String asset_category_id, Integer pageNum, Integer pageSize);
        Future<ResponseResult> exportAssetFixedStorage(SmsAssetFixedStorageExportReq storageExportReq, HttpServletResponse response);
        Future<ResponseResult> batchUpdateFixedStorage(SmsAssetFixedStorageBatchImportReq batchImportReq,String user_id);
        ResponseResult updateFixedStorage(SmsAssetFixedStorageReq storageReq);
}
